﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using wpffc.contracts.viewmodels.learning;

namespace wpffc.views.test
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            var v = new LearningView();

            var vm = new LearningViewModel();
            vm.Question = "a question";
            vm.Answer = "an answer";
            vm.ScoreKnowledgeCmd.Out_Execute += p => { MessageBox.Show(p.ToString()); };
            v.Inject(vm);

            v.Show();
        }
    }
}
